<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>[Generic Component Framework v3] GCF::IGDriveLiteContentSharingModel Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<!--link href="tabs.css" rel="stylesheet" type="text/css"-->
</head><body>
 <div id="wrapper">
    <div id="logo_box">
        <a class="img_link" href="https://github.com/pnudupa/gcf" target="_blank" ><img style="float:left;margin-left:10px;margin-top:5px;margin-bottom:5px;"src="header_gcf_logo.jpg" alt="GCF LOGO"/></a>
        <a class="img_link" href="https://www.vcreatelogic.com/" target="_blank" ><img style="float:right;margin-right:10px; margin-top: 30px;" src="header_vcl_logo.jpg" alt="VCL LOGO"/></a>
        <div style="clear:both"></div>
    </div>
    <div class="nav">
        <ul>
            <li class="selectedpage">
                <a class="a-home" href="index.html" >
                    <span>Home</span>
                </a>
            </li>
            <li>
                <a class="a-classes " href="classes.html">
                    <span>All Classes</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_modules.html">
                    <span>Modules</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_guides_and_videos.html">
                    <span>Guides & Videos</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_tools_and_inbuilt_components.html">
                    <span>Tools & Components</span>
                </a>
            </li>
        </ul>
    </div>
    <div id="main-content">
        <div class="inside">
        <div>
<!-- Generated by Doxygen 1.8.16 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>GCF</b></li><li class="navelem"><a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html">IGDriveLiteContentSharingModel</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">GCF::IGDriveLiteContentSharingModel Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="group__gcf__gdrivelite.html">GCF's GDriveLite component</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>This interface provides access to permissions of a file/folder item.  
 <a href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a3a4fbf9962b8f43120d2894c98b7f9c6"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a3a4fbf9962b8f43120d2894c98b7f9c6">Field</a> { <br />
&#160;&#160;<a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a3a4fbf9962b8f43120d2894c98b7f9c6aa61e7cdc377f98cb3e6a4f6fa8b6ed29">Kind</a> = Qt::UserRole+1, 
<a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a3a4fbf9962b8f43120d2894c98b7f9c6a78963f22674bbdc9769eb908c4855670">ETag</a>, 
<a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a3a4fbf9962b8f43120d2894c98b7f9c6a842e75cb87ebd7c790f4ce2862bdd9b6">PermissionId</a>, 
<a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a3a4fbf9962b8f43120d2894c98b7f9c6a5718c0aa919c9b3d0603cbb70e20b8dc">Id</a> = PermissionId, 
<br />
&#160;&#160;<a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a3a4fbf9962b8f43120d2894c98b7f9c6a0f6806212809324a90be6bab2afe9108">Name</a>, 
<a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a3a4fbf9962b8f43120d2894c98b7f9c6a909114dd99755fb1a38d446b0f4864de">EMailAddress</a>, 
<a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a3a4fbf9962b8f43120d2894c98b7f9c6a5f7c4dead75e26cff5b13eeff2e1b765">Domain</a>, 
<a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a3a4fbf9962b8f43120d2894c98b7f9c6a48a20714b6ee3ca86d317df4c983916e">RoleType</a>, 
<br />
&#160;&#160;<a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a3a4fbf9962b8f43120d2894c98b7f9c6aea1a9c98f02ef3c9d281dc109a5e17f2">RoleTypeStr</a>, 
<a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a3a4fbf9962b8f43120d2894c98b7f9c6a56287ec2ac684f2a2ef8a9ab3d32884f">Title</a>
<br />
 }</td></tr>
<tr class="separator:a3a4fbf9962b8f43120d2894c98b7f9c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab33cccfd511b15fcc7e9ef6c19e7fa92"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#ab33cccfd511b15fcc7e9ef6c19e7fa92">ShareRole</a> { <br />
&#160;&#160;<a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#ab33cccfd511b15fcc7e9ef6c19e7fa92a877fbd6d0d1f0c7ad5e260ea65f1fd25">Owner</a> = 1, 
<a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#ab33cccfd511b15fcc7e9ef6c19e7fa92aca28a1faa9e593fc62ae390e9c4d8422">Reader</a> = 2, 
<a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#ab33cccfd511b15fcc7e9ef6c19e7fa92a91bef43786257d3aa9fc963fc3dd23f7">Writer</a> = 4, 
<a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#ab33cccfd511b15fcc7e9ef6c19e7fa92ae58531767f8096c1aa2a9a97ae38f2ff">Commenter</a> = 8, 
<br />
&#160;&#160;<a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#ab33cccfd511b15fcc7e9ef6c19e7fa92a39054c33eb215478a75fcfa4da15215d">Unknown</a> = 0
<br />
 }</td></tr>
<tr class="separator:ab33cccfd511b15fcc7e9ef6c19e7fa92"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a253c7665f463b1fc223e28f607ae3067"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a253c7665f463b1fc223e28f607ae3067">~IGDriveLiteContentSharingModel</a> ()</td></tr>
<tr class="separator:a253c7665f463b1fc223e28f607ae3067"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a601bb801c59742d585f152fa4e9feee5"><td class="memItemLeft" align="right" valign="top">virtual QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a601bb801c59742d585f152fa4e9feee5">contentItemId</a> () const =0</td></tr>
<tr class="separator:a601bb801c59742d585f152fa4e9feee5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec70df2d876d8025c7bfe17025ba25c2"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_g_c_f_1_1_g_drive_content_1_1_item.html">GCF::GDriveContent::Item</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#aec70df2d876d8025c7bfe17025ba25c2">contentItem</a> () const =0</td></tr>
<tr class="separator:aec70df2d876d8025c7bfe17025ba25c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac7c8ebafe66f0098c2e1d1877e5e8ee"><td class="memItemLeft" align="right" valign="top">virtual Q_INVOKABLE QUrl&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#aac7c8ebafe66f0098c2e1d1877e5e8ee">shareLink</a> () const =0</td></tr>
<tr class="separator:aac7c8ebafe66f0098c2e1d1877e5e8ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4042f7e516e3415e0f496ba2836d2ac4"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a4042f7e516e3415e0f496ba2836d2ac4">setColumns</a> (const QList&lt; int &gt; &amp;fields)=0</td></tr>
<tr class="separator:a4042f7e516e3415e0f496ba2836d2ac4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af79846fa32c1beb57e11f70ecccd807e"><td class="memItemLeft" align="right" valign="top">virtual QList&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#af79846fa32c1beb57e11f70ecccd807e">columns</a> () const =0</td></tr>
<tr class="separator:af79846fa32c1beb57e11f70ecccd807e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac61bea25ac0cd25e6e72de0e0fe4bcd"><td class="memItemLeft" align="right" valign="top">virtual Q_INVOKABLE <a class="el" href="class_g_c_f_1_1_result.html">GCF::Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#aac61bea25ac0cd25e6e72de0e0fe4bcd">share</a> (const GCF::GDriveLiteShareRequest &amp;request)=0</td></tr>
<tr class="separator:aac61bea25ac0cd25e6e72de0e0fe4bcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2403f455752f2f5e2e3070419ede238"><td class="memItemLeft" align="right" valign="top">virtual Q_INVOKABLE <a class="el" href="class_g_c_f_1_1_result.html">GCF::Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#aa2403f455752f2f5e2e3070419ede238">unshare</a> (const QModelIndex &amp;index)=0</td></tr>
<tr class="separator:aa2403f455752f2f5e2e3070419ede238"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada917a1f66a49887d6a47e738e637885"><td class="memItemLeft" align="right" valign="top">virtual Q_INVOKABLE <a class="el" href="class_g_c_f_1_1_result.html">GCF::Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#ada917a1f66a49887d6a47e738e637885">modifyShareRole</a> (const QModelIndex &amp;index, int role)=0</td></tr>
<tr class="separator:ada917a1f66a49887d6a47e738e637885"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab315d62cc50a2d7c0e6cca9867740af4"><td class="memItemLeft" align="right" valign="top">virtual Q_SIGNAL void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#ab315d62cc50a2d7c0e6cca9867740af4">modified</a> ()=0</td></tr>
<tr class="separator:ab315d62cc50a2d7c0e6cca9867740af4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec50f079a59b604341ceaa483c57ab7f"><td class="memItemLeft" align="right" valign="top">virtual Q_SIGNAL void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#aec50f079a59b604341ceaa483c57ab7f">error</a> (const QString &amp;msg)=0</td></tr>
<tr class="separator:aec50f079a59b604341ceaa483c57ab7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p> 
<pre>
#include &lt;GCF3/IGDriveLiteContentSharingModel&gt;
</pre>
</p>
<p>Using this interface you can add/remove/edit share permissions for a file or folder. Instances of this interface can be created using the <a class="el" href="class_g_c_f_1_1_i_g_drive_lite.html#a4f7b5b2b26f9226bfc40e66be9afecda">GCF::IGDriveLite::createSharingModel()</a> method. Once created the interface fetches current sharing permissions using Google Drive API. This interface implements <code>QAbstractItemModel</code> to provide a model-like access to permissions against the file identified by <a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a601bb801c59742d585f152fa4e9feee5">contentItemId()</a>. You can visualize the sharing permissions in a list-view or also using QML!</p>
<div class="image">
<img src="sharing-model-qml.png" alt=""/>
</div>
<p>You can use the <a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#aac61bea25ac0cd25e6e72de0e0fe4bcd">share()</a>, <a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#aa2403f455752f2f5e2e3070419ede238">unshare()</a>, <a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#ada917a1f66a49887d6a47e738e637885">modifyShareRole()</a> methods to edit share permissions. </p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a3a4fbf9962b8f43120d2894c98b7f9c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a4fbf9962b8f43120d2894c98b7f9c6">&#9670;&nbsp;</a></span>Field</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a3a4fbf9962b8f43120d2894c98b7f9c6">GCF::IGDriveLiteContentSharingModel::Field</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The enumeration values of Field represents specific property of sharing information of an item.</p>
<p>This enumeration values are also used to construct columns and order of it using <a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a4042f7e516e3415e0f496ba2836d2ac4">GCF::IGDriveLiteContentSharingModel::setColumns(const QList&lt;int&gt; &amp;columns)</a>. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a3a4fbf9962b8f43120d2894c98b7f9c6aa61e7cdc377f98cb3e6a4f6fa8b6ed29"></a>Kind&#160;</td><td class="fielddoc"><p>kind of sharing information. [Role-name: <code>"shareKind"</code>] </p>
</td></tr>
<tr><td class="fieldname"><a id="a3a4fbf9962b8f43120d2894c98b7f9c6a78963f22674bbdc9769eb908c4855670"></a>ETag&#160;</td><td class="fielddoc"><p>etag of sharing information. [Role-name: <code>"shareETag"</code>] </p>
</td></tr>
<tr><td class="fieldname"><a id="a3a4fbf9962b8f43120d2894c98b7f9c6a842e75cb87ebd7c790f4ce2862bdd9b6"></a>PermissionId&#160;</td><td class="fielddoc"><p>permission ID of sharing information. [Role-name: <code>"sharePermissionId"</code>] </p>
</td></tr>
<tr><td class="fieldname"><a id="a3a4fbf9962b8f43120d2894c98b7f9c6a5718c0aa919c9b3d0603cbb70e20b8dc"></a>Id&#160;</td><td class="fielddoc"><p>alias of <a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a3a4fbf9962b8f43120d2894c98b7f9c6a842e75cb87ebd7c790f4ce2862bdd9b6">GCF::IGDriveLiteContentSharingModel::PermissionId</a>. [Role-name: <code>"sharePermissionId"</code>] </p>
</td></tr>
<tr><td class="fieldname"><a id="a3a4fbf9962b8f43120d2894c98b7f9c6a0f6806212809324a90be6bab2afe9108"></a>Name&#160;</td><td class="fielddoc"><p>name of user in sharing information. [Role-name: <code>"shareUserName"</code>] </p>
</td></tr>
<tr><td class="fieldname"><a id="a3a4fbf9962b8f43120d2894c98b7f9c6a909114dd99755fb1a38d446b0f4864de"></a>EMailAddress&#160;</td><td class="fielddoc"><p>email id of user in sharing information. [Role-name: <code>"shareEMailAddress"</code>] </p>
</td></tr>
<tr><td class="fieldname"><a id="a3a4fbf9962b8f43120d2894c98b7f9c6a5f7c4dead75e26cff5b13eeff2e1b765"></a>Domain&#160;</td><td class="fielddoc"><p>domain present in sharing information. [Role-name: <code>"shareDomain"</code>] </p>
</td></tr>
<tr><td class="fieldname"><a id="a3a4fbf9962b8f43120d2894c98b7f9c6a48a20714b6ee3ca86d317df4c983916e"></a>RoleType&#160;</td><td class="fielddoc"><p>role type of sharing information. </p>
</td></tr>
<tr><td class="fieldname"><a id="a3a4fbf9962b8f43120d2894c98b7f9c6aea1a9c98f02ef3c9d281dc109a5e17f2"></a>RoleTypeStr&#160;</td><td class="fielddoc"><p>role type string of sharing information. [Role-name: <code>"shareRoleType"</code>] </p>
</td></tr>
<tr><td class="fieldname"><a id="a3a4fbf9962b8f43120d2894c98b7f9c6a56287ec2ac684f2a2ef8a9ab3d32884f"></a>Title&#160;</td><td class="fielddoc"><p>title of sharing information. [Role-name: <code>"shareTitle"</code>] </p>
</td></tr>
</table>

</div>
</div>
<a id="ab33cccfd511b15fcc7e9ef6c19e7fa92"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab33cccfd511b15fcc7e9ef6c19e7fa92">&#9670;&nbsp;</a></span>ShareRole</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#ab33cccfd511b15fcc7e9ef6c19e7fa92">GCF::IGDriveLiteContentSharingModel::ShareRole</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The enumeration values of ShareRole represents types of roles in google drive. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ab33cccfd511b15fcc7e9ef6c19e7fa92a877fbd6d0d1f0c7ad5e260ea65f1fd25"></a>Owner&#160;</td><td class="fielddoc"><p>user role is Owner. </p>
</td></tr>
<tr><td class="fieldname"><a id="ab33cccfd511b15fcc7e9ef6c19e7fa92aca28a1faa9e593fc62ae390e9c4d8422"></a>Reader&#160;</td><td class="fielddoc"><p>user role is Reader. </p>
</td></tr>
<tr><td class="fieldname"><a id="ab33cccfd511b15fcc7e9ef6c19e7fa92a91bef43786257d3aa9fc963fc3dd23f7"></a>Writer&#160;</td><td class="fielddoc"><p>user role is Writer. </p>
</td></tr>
<tr><td class="fieldname"><a id="ab33cccfd511b15fcc7e9ef6c19e7fa92ae58531767f8096c1aa2a9a97ae38f2ff"></a>Commenter&#160;</td><td class="fielddoc"><p>user role is Commenter. </p>
</td></tr>
<tr><td class="fieldname"><a id="ab33cccfd511b15fcc7e9ef6c19e7fa92a39054c33eb215478a75fcfa4da15215d"></a>Unknown&#160;</td><td class="fielddoc"><p>user role is not known. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a253c7665f463b1fc223e28f607ae3067"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a253c7665f463b1fc223e28f607ae3067">&#9670;&nbsp;</a></span>~IGDriveLiteContentSharingModel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GCF::IGDriveLiteContentSharingModel::~IGDriveLiteContentSharingModel </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a601bb801c59742d585f152fa4e9feee5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a601bb801c59742d585f152fa4e9feee5">&#9670;&nbsp;</a></span>contentItemId()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GCF::IGDriveLiteContentSharingModel::contentItemId </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns id of the sharing model's item.</p>
<dl class="section return"><dt>Returns</dt><dd><code>QString</code> id of item </dd></dl>

</div>
</div>
<a id="aec70df2d876d8025c7bfe17025ba25c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec70df2d876d8025c7bfe17025ba25c2">&#9670;&nbsp;</a></span>contentItem()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GCF::IGDriveLiteContentSharingModel::contentItem </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns sharing model's item.</p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_g_c_f_1_1_g_drive_content_1_1_item.html">GCF::GDriveContent::Item</a> </dd></dl>

</div>
</div>
<a id="aac7c8ebafe66f0098c2e1d1877e5e8ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac7c8ebafe66f0098c2e1d1877e5e8ee">&#9670;&nbsp;</a></span>shareLink()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GCF::IGDriveLiteContentSharingModel::shareLink </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Url which will should be used to share the current item. </p>

</div>
</div>
<a id="a4042f7e516e3415e0f496ba2836d2ac4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4042f7e516e3415e0f496ba2836d2ac4">&#9670;&nbsp;</a></span>setColumns()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GCF::IGDriveLiteContentSharingModel::setColumns </td>
          <td>(</td>
          <td class="paramtype">const QList&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>fields</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Sets the columns of this according to 'fields' parameter. QList&lt;Field&gt; &amp;fields is a list of enumeration values of <a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a3a4fbf9962b8f43120d2894c98b7f9c6">GCF::IGDriveLiteContentSharingModel::Field</a>. The columns are constructed based on the given enumeration values and the order of it.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fields</td><td>list of enumeration values of <a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a3a4fbf9962b8f43120d2894c98b7f9c6">GCF::IGDriveLiteContentSharingModel::Field</a> based upon which model's columns need to be constructed. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af79846fa32c1beb57e11f70ecccd807e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af79846fa32c1beb57e11f70ecccd807e">&#9670;&nbsp;</a></span>columns()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GCF::IGDriveLiteContentSharingModel::columns </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the columns of content model. <code>QList&lt;int&gt;</code> will contain the values of <a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a3a4fbf9962b8f43120d2894c98b7f9c6">GCF::IGDriveLiteContentSharingModel::Field</a> the order in which the columns are set in the model.</p>
<dl class="section return"><dt>Returns</dt><dd><code>QList&lt;int&gt;</code> list of enumeration values of <a class="el" href="class_g_c_f_1_1_i_g_drive_lite_content_sharing_model.html#a3a4fbf9962b8f43120d2894c98b7f9c6">GCF::IGDriveLiteContentSharingModel::Field</a>. </dd></dl>

</div>
</div>
<a id="aac61bea25ac0cd25e6e72de0e0fe4bcd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aac61bea25ac0cd25e6e72de0e0fe4bcd">&#9670;&nbsp;</a></span>share()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GCF::IGDriveLiteContentSharingModel::share </td>
          <td>(</td>
          <td class="paramtype">const GCF::GDriveLiteShareRequest &amp;&#160;</td>
          <td class="paramname"><em>request</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Shares the item represented by share model. <code>GCF::GDriveLiteShareRequest</code> is a structure which contains the fields necessary for sharing the file.</p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_g_c_f_1_1_result.html">GCF::Result</a> which contains the success or failure information regarding whether sharing was successful or not. </dd></dl>

</div>
</div>
<a id="aa2403f455752f2f5e2e3070419ede238"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2403f455752f2f5e2e3070419ede238">&#9670;&nbsp;</a></span>unshare()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GCF::IGDriveLiteContentSharingModel::unshare </td>
          <td>(</td>
          <td class="paramtype">const QModelIndex &amp;&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Unshares the item with user in sharing information at specified index.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>index of permission. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_g_c_f_1_1_result.html">GCF::Result</a> which contains the success or failure information regarding whether unsharing was successful or not. </dd></dl>

</div>
</div>
<a id="ada917a1f66a49887d6a47e738e637885"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ada917a1f66a49887d6a47e738e637885">&#9670;&nbsp;</a></span>modifyShareRole()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GCF::IGDriveLiteContentSharingModel::modifyShareRole </td>
          <td>(</td>
          <td class="paramtype">const QModelIndex &amp;&#160;</td>
          <td class="paramname"><em>index</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>role</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Modifies the current item permission for a user corresponding to sharing information at index.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">role</td><td>new role of the user. </td></tr>
    <tr><td class="paramname">index</td><td>index of permission.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="class_g_c_f_1_1_result.html">GCF::Result</a> which contains the success or failure information regarding whether the modifying sharing permission was successful or not. </dd></dl>

</div>
</div>
<a id="ab315d62cc50a2d7c0e6cca9867740af4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab315d62cc50a2d7c0e6cca9867740af4">&#9670;&nbsp;</a></span>modified()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GCF::IGDriveLiteContentSharingModel::modified </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This signal is emitted when the sharing information stored in the sharing model is modified. </p>

</div>
</div>
<a id="aec50f079a59b604341ceaa483c57ab7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec50f079a59b604341ceaa483c57ab7f">&#9670;&nbsp;</a></span>error()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GCF::IGDriveLiteContentSharingModel::error </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>msg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This signal is emitted when some error occurs while fetching the sharing information. </p>

</div>
</div>
</div><!-- contents -->
</div>
</div>
</div>
<div class="footer_content">
<table width="100%" class="footer">
<tr>
<td align="left" width="50%">Copyright &copy; 2013-2019,
 <a class="el" href="http://www.vcreatelogic.com" target="_black">VCreate Logic Private Limited</a></td>
<td align="right" width="50%"><a class="el" href="http://www.vcreatelogic.com/products/gcf" target="_black">GCF - Generic Component Framework</a></td>
</tr>
</table>
</div>
</div>
</body>
</html>
